﻿@using WebEntities
@using com.subb.Tools.Pager

@model PagedList<WI_Jobs>

@{
    ViewBag.Title = "招聘信息";
    Layout = "~/Views/Shared/_DefLayout.cshtml";
}

<div class="topadimg"><img src="/Images/banner05.jpg" /></div>
<div class="subleft">
    <h2>
        <img src="/Images/subicon03.jpg" alt="" />
        <span>人才招聘</span>
    </h2>
    <ul class="left_submenu">
        <li class="leftact"><a href="/jobs">招聘信息</a></li>
        <li><a href="/jobs/wish">用人理念</a></li>
    </ul>
    @Html.Partial("_ShareLeftBar")
</div>
<div class="subright">
    <div class="pagepath"><a href="/"><img src="/Images/homeicon.jpg" alt="首页" /></a> &gt; <a href="/jobs">人才招聘</a> &gt; <a href="/jobs">招聘信息</a></div>
    <div class="midcontent">
        <div class="jobar">
            <div>职位名称</div>
            <div>工作地点</div>
            <div>招聘人数</div>
            <div>要求性别</div>
            <div>工作经验</div>
            <div>教育背景</div>
            <div>发布日期</div>
            <div>截止日期</div>
            <div class="cls"></div>
        </div>
        @foreach (var job in Model)
        {
            <div class="jobrow">
                <div><a href="/jobs/details/@job.JobID" target="_blank">@job.JobName</a></div>
                <div>@job.JobAddress</div>
                <div>@job.JobPepleNum</div>
                <div>@job.JobSex</div>
                <div>@job.WorkExperience</div>
                <div>@job.EduBackGround</div>
                <div>@((job.PubTime.HasValue ? job.PubTime : job.CreateTime).Value.ToString("yyyy/MM/dd"))</div>
                <div>@((job.LimitTime.HasValue) ? job.LimitTime.Value.ToString("yyyy/MM/dd") : string.Empty)</div>
            </div>
        }
        <div class="cls"></div>
        @Html.Pager(Model, new PagerOptions
        {
           PageIndexParameterName = "id",
           CurrentPagerItemWrapperFormatString = "<span class=\"currpage\">{0}</span>", 
                NumericPagerItemWrapperFormatString = "<span class=\"pagenum\">{0}</span>", CssClass = "pager", SeparatorHtml = "" })
    </div>
</div>
<div class="cls"></div>

